﻿@{
    Layout = "~/Views/Shared/_empty.cshtml";
}
@section head{
    <title>授权申请</title>
}
@section content{
    <div class="panel panel-primary">
        <div class="panel-heading"><span class="fa fa-book"></span><span class="margin_l5">授权申请</span></div>
        <div class="panel-body">
            <div>
                <table class="table table-bordered">
                    <tr><td class="td_m">授权名称：</td><td><span>逐浪APP生成授权</span></td></tr>
                    <tr><td>申请时间：</td><td><span>@DateTime.Now.ToString("yyyy-MM-dd")</span></td></tr>
                    <tr><td>有效期限：</td><td>不限定</td></tr>
                </table>
            </div>
            <form>
                <table class="table table-bordered">
                    <tr>
                        <td class="td_m">网站地址：</td>
                        <td>
                            <input type="text" id="siteurl" name="siteurl" class="form-control text_300 isurl required" />
                        </td>
                    </tr>
                    <tr>
                        <td>联系人：</td>
                        <td>
                            <input type="text" id="contact" name="contact" class="form-control text_300 required" maxlength="10" />
                        </td>
                    </tr>
                    <tr>
                        <td>手机号码：</td>
                        <td>
                            <input type="text" id="mphone" name="mphone" class="form-control text_300 phone" />
                        </td>
                    </tr>
                    <tr>
                        <td>Email：</td>
                        <td>
                            <input type="text" id="email" name="email" class="form-control text_300 isemail" />
                            <span class="r_red">*</span>请填写可用的Email地址,授权码将发往该邮箱
                        </td>
                    </tr>
                    <tr>
                        <td>公司名称：</td>
                        <td>
                            <input type="text" id="compname" name="compname" class="form-control text_300" maxlength="10" />
                        </td>
                    </tr>
                    <tr>
                        <td>QQ号码：</td>
                        <td>
                            <input type="text" id="qqcode" name="qqcode" class="form-control text_300" maxlength="20" />
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>
                            <input type="submit" class="btn btn-primary" value="确认申请" />
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
}
@section script{
    <script src="/JS/ZL_Regex.js"></script>
    <script type="text/javascript" src="/JS/jquery.validate.min.js"></script>
    <script>
        $(function () {
            $.validator.addMethod("phone", function (value) {
                return ZL_Regex.isMobilePhone(value);
            }, "请输入正确的手机号码");
            $.validator.addMethod("isurl", function (value) {
                value = StrHelper.UrlDeal(value);
                return ZL_Regex.isUrl(value);
            }, "链接格式不正确");
            $.validator.addMethod("isemail", function (value) {
                return ZL_Regex.isEmail(value);
            }, "Email地址格式不正确")
            $("form").validate({});
        })
    </script>
}